package com.lingdian.fund.service.impl;

import org.springframework.stereotype.Service;

import com.lingdian.fund.service.Observer;
import com.lingdian.fund.service.SubjectService;
@Service("fundDataObserver")
public class FundDataObserver implements Observer{

	@Override
	public void update(SubjectService subject) {
		if(subject instanceof FundDataSubject){
			FundDataSubject s = (FundDataSubject) subject;
			String code = ((FundDataSubject) subject).getFundData().getCode();
			System.out.println(code);
		}
	}

}
